unit DetailCustomersForm;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs,DefaultForm, StdCtrls, Grids, DBGrids, ExtCtrls, DBCtrls, Mask;

type
  TForm11 = class(TForm5)
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    Label4: TLabel;
    Label5: TLabel;
    DBEdit2: TDBEdit;
    DBEdit3: TDBEdit;
    DBEdit4: TDBEdit;
    DBEdit5: TDBEdit;
    DBNavigator1: TDBNavigator;
    Panel1: TPanel;
    DBGrid1: TDBGrid;
    Button1: TButton;
    DBLookupComboBox1: TDBLookupComboBox;
    procedure Button1Click(Sender: TObject);
    procedure DBEdit4KeyPress(Sender: TObject; var Key: Char);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form11: TForm11;

implementation

uses DataModule;

{$R *.dfm}

procedure TForm11.Button1Click(Sender: TObject);
begin
  inherited;
    DataModule2.RvProject1.SelectReport('Report2',true);
    DataModule2.RvProject1.Open;
    DataModule2.RvProject1.Execute;
end;

procedure TForm11.DBEdit4KeyPress(Sender: TObject; var Key: Char);
begin
  inherited;
      if not((key>='0') and (key<='9')or(key=#8)) then
        key:=char(0)
end;

end.
